﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AuctionSystem.AuctionService;

namespace AuctionSystem
{
    public partial class ItemsList : Form
    {
        private List<Item> itemsList;
        private AuctionServiceClient _client;

        public ItemsList(AuctionServiceClient _client)
        {
            InitializeComponent();
            this._client = _client;
            itemsList = _client.GetAllItems();
            foreach (var item in itemsList)
            {
                listItemsBox.Items.Add(item);
            }
        }

        private void listItems_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void btnAdd_Click(object sender, EventArgs e)
        {
            //_client.
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {

        }
    }
}
